//
//  AIMineButton.m
//  ZJCLoveBee
//
//  Created by 朱建超 on 16/12/22.
//  Copyright © 2016年 itHeiMa. All rights reserved.
//

#import "AIMineButton.h"

@implementation AIMineButton

+(instancetype)buttonWithType:(UIButtonType)buttonType{

    AIMineButton *aiMinebutton = [super buttonWithType:buttonType];
    
    if (aiMinebutton) {
        
        aiMinebutton.titleLabel.textAlignment = NSTextAlignmentCenter;
        aiMinebutton.imageView.layer.masksToBounds = YES;
        aiMinebutton.layer.masksToBounds = YES;
//        aiMinebutton.backgroundColor = [UIColor blueColor];
        aiMinebutton.titleLabel.font = [UIFont systemFontOfSize:14];
        
    }
    return aiMinebutton;
}


-(CGRect)titleRectForContentRect:(CGRect)contentRect{

    return CGRectMake(35, 50, 60, 20);

}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{

    return CGRectMake(45, 20, 32.5, 22.5);

}

@end
